package test.quiz2;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @author oldliu
 * @since 1.0
 */
public class Aritcle {
    public static void main(String[] args) throws Exception {
        FileInputStream fin=new FileInputStream("D:\\Documents\\桌面\\exe\\3-java-advance\\高级综合-2\\aricle.txt");
        byte []b=new byte[fin.available()];
        int len = fin.read(b);
        fin.close();
        String str=new String(b,0,len,"GBK");
         //System.out.println(str);
        String[] ar = str.split("[\\.,\\s;]+");
        for(String t:ar){
            System.out.println(t.length()+","+t);
        }
    }
}
